package com.jyw.system.domain.dto;

import com.jyw.common.core.domain.entity.SysUser;
import com.jyw.common.utils.bean.BeanUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author 沈峻
 * @ClassName UserAddDto
 * @Description TODO
 * @Date 2023/8/9 14:38
 **/
@Data
@ApiModel("用户新增请求实体")
public class UserEditDto extends UserAddDto{

    @ApiModelProperty("用户主键")
    private Long userId;

    @Override
    public SysUser buildUser(){
        SysUser user = super.buildUser();
        user.setUserId(getUserId());
        return user;
    }
}
